import android.app.Activity;
import android.content.Intent;

import com.aierjun.scanqrlib.CommonScanActivity;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Ani_aierJun on 2017/10/19.
 */

public class TestSample extends Activity{
    private int code = 123;


    private void test(){
        startActivityForResult(new Intent(this, CommonScanActivity.class), code);
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        switch (requestCode) {
            case 123:
                if (data != null)
                    data.getStringExtra("ID");
                break;
            default: {
                break;
            }
        }
    }
}
